home *** CD-ROM | disk | FTP | other *** search
- unit ComServer1_TLB;
-
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.88.1.0.1.0 $
- // File generated on 05/04/2001 12:55:22 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\Magazines\Work In Progress\70 - Jun 01\Clinic\Files\COM Solution 1\ComServer1.tlb (1)
- // IID\LCID: {5D3488A0-2347-49CC-8F7C-05C87D7F353E}\0
- // Helpfile:
- // DepndLst:
- // (1) v1.0 BaseLib, (D:\MAGAZI~1\WORKIN~1\70-JUN~1\Clinic\Files\COMSOL~1\BaseLib.tlb)
- // (2) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
- // (3) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL,
- BaseLib_TLB;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- ComServer1MajorVersion = 1;
- ComServer1MinorVersion = 0;
-
- LIBID_ComServer1: TGUID = '{5D3488A0-2347-49CC-8F7C-05C87D7F353E}';
-
- CLASS_ComClass1: TGUID = '{C0CFFE89-2B19-49CB-B52E-74E890AAE928}';
- type
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- ComClass1 = IFoo;
-
-
- // *********************************************************************//
- // The Class CoComClass1 provides a Create and CreateRemote method to
- // create instances of the default interface IFoo exposed by
- // the CoClass ComClass1. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoComClass1 = class
- class function Create: IFoo;
- class function CreateRemote(const MachineName: string): IFoo;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoComClass1.Create: IFoo;
- begin
- Result := CreateComObject(CLASS_ComClass1) as IFoo;
- end;
-
- class function CoComClass1.CreateRemote(const MachineName: string): IFoo;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_ComClass1) as IFoo;
- end;
-
- end.
-